{% extends "base.html" %}
{% load static %}
{% block title %}创建{% endblock %}
{% block css %}<link rel="stylesheet" href="{% static 'css/update_novel.css' %}">{% endblock %}
{% block content %}

<div class="update-form">
    <div class="status">{{ status | default_if_none:"" }}</div>
    <h3>新增</h3>
    <form method="post">
        {% csrf_token %}
        <div class="update-info">
            <span class="update-key">主题</span>
            <input class="update-value" type="text" name="theme" value='{{ result.theme }}'> 
        </div>
        <div class="update-info">
            <span class="update-key">标题</span>
            <input class="update-value" type="text" name="title" value='{{ result.title }}'> 
        </div>
        <div class="update-info">
            <span class="update-key">序列</span>
            <input class="update-value" type="text" name="sort" list="sortlist"> 
            <datalist id="sortlist">
                <option>1</option>
                <option>2</option>
                <option>3</option>
            </datalist> 
        </div>
        <div class="update-info">
            <span class="update-key">副标题</span>
            <input class="update-value" type="text" name="subtitle"> 
        </div>
        <div class="update-info">
            <span class="update-key">字数</span>
            <input class="update-value" type="text" id="words" name="words"> 
        </div>
        <div class="update-info">
            <span class="update-key">章数</span>
            <input class="update-value" type="text" id="chapters" name="chapters"> 
        </div>
        <div class="update-info">
            <span class="update-key">开更日期</span>
            <input class="update-value" type="text" id="date_start" name="date_start"> 
        </div>
        <div class="update-info">
            <span class="update-key">完结日期</span>
            <input class="update-value" type="text" id="date_end" name="date_end"> 
        </div>
        <div class="update-info">
            <span class="update-key">作者</span>
            <input class="update-value" type="text" name="author"  value='{{ result.author }}'> 
        </div>

        <input type="submit" value="提交">
</div>

<script>



</script>
    
{% endblock %}